//  获取文章数量
$.ajax({
  type: 'get',
  url: '/posts/count',
  success: function(response) {
    $('.countTotal li').eq(1).html(response.postCount +'篇文章（'+response.draftCount +'篇草稿)')
  }
})
$.ajax({
  type: 'get',
  url: '/categories/count',
  success: function(response) {
    $('.countTotal li').eq(2).html(response.categoryCount+'个分类')
  }
})
$.ajax({
  type: 'get',
  url: '/comments/count',
  success: function(response) {
    $('.countTotal li').eq(3).html(response.commentCount+'条评论')
  }
})